package ss.pku.jsa.log;

/**
 * 
 * @author Bin
 *	Logger
 */
public class Log {

	public static boolean isEnable = true;

	public static void enable() {
		Log.isEnable = true;
	}

	public static void disable() {
		Log.isEnable = false;
	}

	public static void logInfo(String format, Object... args) {
		if (isEnable)
			System.out.println(String.format(format, args));
	}

	public static void logErr(String format, Object... args) {
		if (isEnable)
			System.err.println(String.format(format, args));
	}

	public static void logWarn(String format, Object... args) {
		if (isEnable)
			System.out.println(String.format(format, args));
	}
}
